<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<div id="header">
   	<ul id="header-menu-bar" class="ajs-menu-bar">
		<li class="ajs-menu-item normal"> <a href="/login.action"><span>登 录</span></a></li>
		<li class="ajs-menu-item normal"> <a href="${art.id }/gotoEdit.do"><span>编辑当前页</span></a></li>
		<li class="ajs-menu-item normal"> <a id="bt_del_article" href="javascript:void()"><span>删除当前页</span></a></li>
		<li class="ajs-menu-item normal"> <a href="gotoAdd.do"><span>添加新页面</span></a></li>
	</ul>
</div>

<script type="text/JavaScript" defer="defer">
	$(document).ready(function(){
		$("#bt_del_article").click(function(){
			$.ajax({
				   url: "${art.id}/delete.do",
				   complete: function(rsp){
					   var rst=$.parseJSON(rsp.responseText);
	                	if(rst.sucess){
	                		window.location="<%=basePath%>1.do"
	                	}else{
	                		alert(rst.msg,"提示");
	                	}
					}
			});
			
		})
	})
</script>